diff --git a/inc/contrib/Twig/Extensions/Extension/Tinyboard.php b/inc/contrib/Twig/Extensions/Extension/Tinyboard.php index 8eccf662..3540c1a3 100644 --- a/inc/contrib/Twig/Extensions/Extension/Tinyboard.php +++ b/inc/contrib/Twig/Extensions/Extension/Tinyboard.php @@ -19,7 +19,8 @@ class Twig_Extensions_Extension_Tinyboard extends Twig_Extension 'hasPermission' => new Twig_Filter_Function('twig_hasPermission_filter', array('needs_environment' => false)), 'date' => new Twig_Filter_Function('twig_date_filter', array('needs_environment' => false)), 'poster_id' => new Twig_Filter_Function('poster_id', array('needs_environment' => false)), - 'remove_whitespace' => new Twig_Filter_Function('twig_remove_whitespace_filter', array('needs_environment' => false)) + 'remove_whitespace' => new Twig_Filter_Function('twig_remove_whitespace_filter', array('needs_environment' => false)), + 'count' => new Twig_Filter_Function('count', array('needs_environment' => false)) ); } diff --git a/templates/post_reply.html b/templates/post_reply.html index 934cc018..c115da82 100644 --- a/templates/post_reply.html +++ b/templates/post_reply.html @@ -1,6 +1,7 @@ {% filter remove_whitespace %} {# tabs and new lines will be ignored #} -
+

@@ -28,13 +29,13 @@ {% if post.mod and post.mod|hasPermission(config.mod.show_ip, board.uri) %} [{{ post.ip }}] {% endif %} - {{ post.time|date(config.post_date) }} + {% if config.poster_ids %} ID: {{ post.ip|poster_id(post.thread) }} {% endif %} - +

{% endif %} {% if post.embed %} @@ -47,12 +47,12 @@ {{ config.uri_thumb }}{{ post.thumb }} {% endif %}" style="width:{{ post.thumbx }}px;height:{{ post.thumby }}px" alt="" /> {% endif %} -

+

{% if config.poster_ids %} ID: {{ post.ip|poster_id(post.id) }} {% endif %} - No. + {% endif %} {% if index %} - + [{% trans %}Reply{% endtrans %}] {% endif %} {{ post.postControls }}

-

+

{% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %}

{% if post.omitted or post.omitted_images %} @@ -128,6 +128,9 @@ {% endif %} omitted. Click reply to view. {% endif %} +{% if not index %} + +{% endif %}
{% endfilter %} {% set hr = post.hr %} {% for post in post.posts %}